﻿/*
 * Created by SharpDevelop.
 * User: Shenyang
 * Date: 2014/8/17
 * Time: 22:24
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System.Web;
using System.Web.Http;

namespace Kits.SNMP.WebAPI
{
	public class MvcApplication : HttpApplication
	{
		protected void Application_Start()
		{
			GlobalConfiguration.Configuration.Routes.MapHttpRoute(
				name: "DefaultAPI",
				routeTemplate: "api/{controller}/{id}",
				defaults: new {
								controller = "Home",
								action = "Get",
								id = RouteParameter.Optional
							}
			);
		}
	}
}
